#!/usr/bin/env bash
sudo docker pull k8s.gcr.io/kube-apiserver:v1.14.1
sudo docker pull k8s.gcr.io/kube-controller-manager:v1.14.1
sudo docker pull k8s.gcr.io/kube-scheduler:v1.14.1
sudo docker pull k8s.gcr.io/kube-proxy:v1.14.1
sudo docker pull k8s.gcr.io/pause:3.1
sudo docker pull k8s.gcr.io/etcd:3.3.10
sudo docker pull k8s.gcr.io/coredns:1.3.1
sudo docker pull k8s.gcr.io/kubernetes-dashboard-amd64:v1.10.1
sudo docker pull quay.io/coreos/flannel:v0.9.1-amd64
echo "==================== start pull docker images =========================="
cmds=(
   'docker pull k8s.gcr.io/kube-apiserver:v1.14.1',
   'docker pull k8s.gcr.io/kube-controller-manager:v1.14.1',
   'docker pull k8s.gcr.io/kube-scheduler:v1.14.1',
   'docker pull k8s.gcr.io/kube-proxy:v1.14.1',
   'docker pull k8s.gcr.io/pause:3.1',
   'docker pull k8s.gcr.io/etcd:3.3.10',
   'docker pull k8s.gcr.io/coredns:1.3.1',
   'docker pull k8s.gcr.io/kubernetes-dashboard-amd64:v1.10.1',
   'docker pull quay.io/coreos/flannel:v0.9.1-amd64'
)
for cmd in ${cmds[*]};do
     eval "$cmd"
done
echo "==================== end pull docker images    =========================="